/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __SRAM_H
#define __SRAM_H

#include "stm32f1xx_hal.h"
#include "stdint.h"
#include "define.h"

void FSMC_SRAM_WriteBuffer(u8* pBuffer, u32 WriteAddr, u32 NumHalfwordToWrite);
void FSMC_SRAM_ReadBuffer(u8* pBuffer, u32 ReadAddr, u32 NumHalfwordToRead);

void fsmc_sram_test_write(u32 addr, u8 data);
u8 fsmc_sram_test_read(u32 addr);

#endif /* __SRAM_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
